<script setup>
const istyle = defineModel()
const props = defineProps({
  // istyle: Object,
  eleDef: Object,
  currentItemElCode: String
})
</script>

<template>
  <div class="ele-prop-item">
    <el-form label-width="60px" size="mini" v-if="istyle">
      <el-form-item label="控制条">
        <el-switch v-model="istyle.controls"></el-switch>
      </el-form-item>
      <el-form-item label="自动播放">
        <el-switch v-model="istyle.autoplay"></el-switch>
      </el-form-item>
      <el-form-item label="循环播放">
        <el-switch v-model="istyle.loop"></el-switch>
      </el-form-item>
      <el-form-item label="禁音视频">
        <el-switch v-model="istyle.muted"></el-switch>
      </el-form-item>
      <el-form-item label="粗细">
        <el-radio-group v-model="istyle.preload" size="mini">
          <el-radio-button label="auto">自动</el-radio-button>
          <el-radio-button label="metadata">基础信息</el-radio-button>
          <el-radio-button label="none">不加载</el-radio-button>
        </el-radio-group>
      </el-form-item>
    </el-form>
  </div>
</template>
